<?php
if (isset($_GET['act'])) {
    $act = $_GET['act'];
} else {
    $act = "home";
}

$home_uri = 'http://' . $_SERVER['HTTP_HOST'];
?>

<div class="header">
    <div class="row">
        <div class="col-md-8">
            <a href="<?php echo APPLICATION_URL; ?>"><img class="logo" alt="logo" src="<?= APPLICATION_URL ?>images/logo.jpg"/></a>
        </div>
        <div class="col-md-4" style="text-align: right">
            <table class="header-action">
                <tr>
                    <td>
                        <div class="input-group">
                            <input type="text" class="search-input" placeholder="<?php __("Search") ?>">
                            <span class="input-group-btn">
                                <button class="btn-search" type="button" onclick="search(this);"><img src="<?= APPLICATION_URL ?>images/search-icon.jpg"></button>
                            </span>
                        </div><!-- /input-group -->
                    </td>
                    <td>
                        <div class="btn-group">
                            <button type="button" class="lang-input dropdown-toggle" data-toggle="dropdown">
                                <?php __("VN"); ?> <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu" role="menu" style="text-align: left">
                                <li><a href="javascript:void(0)" onclick="changeLang('vn');" >VN</a></li>
                                <li><a href="javascript:void(0)" onclick="changeLang('en');" >EN</a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
                
            </table>
            <div class="clear"></div>
            <div class="header-phone">
                <img src="<?= APPLICATION_URL ?>images/phone-icon.jpg"> 
                <?= $co_home['phone'] ?>
            </div>

        </div>
    </div>




</div>
<div class="nav">
    <ul>
        <li class="first <?= $homeClass ?>"><a href="<?= APPLICATION_URL ?>home.html"><img src="<?= APPLICATION_URL ?>images/home-icon.jpg"></a></li>
        
        <li class="<?= $aboutClass ?>"><a href="<?= APPLICATION_URL ?>intro.html"><?= $co_about['titlemenu' . $hg] ?></a>
            <!--
            <ul>
            <?php
            $re_list = $db->select("select * from about_item order by orderId asc ");
            while ($tt_list = $db->fetch($re_list)) {
                ?>
                                <li>
                                        <a href="<?= APPLICATION_URL ?>intro/<?= $tt_list['titleurl'] ?>.html"><?= $tt_list['title' . $hg] ?></a>
                                        <div class="clear"></div>
                                </li>		
                <?php
            }
            ?>
            </ul>
            -->
        </li>
        <li class="line"></li>
        <li class="<?= $newsClass ?>"><a href="<?= APPLICATION_URL ?>news.html"><?= $co_news['titlemenu' . $hg] ?></a></li>
        <li class="line"></li>
        <li class="<?= $productClass ?>"><a href="<?= APPLICATION_URL ?>product.html"><?= $co_product['titlemenu' . $hg] ?></a></li>
        <li class="line"></li>
        <li class="<?= $tipClass ?>"><a href="<?= APPLICATION_URL ?>service.html"><?= $co_tip['titlemenu' . $hg] ?></a></li>
        <li class="line"></li>
        <li class="<?= $partnerClass ?>"><a href="<?= APPLICATION_URL ?>partner.html"><?= $co_partner['titlemenu' . $hg] ?></a></li>
        <li class="line"></li>
        <li class="<?= $buywhereClass ?>"><a href="<?= APPLICATION_URL ?>agents.html"><?= $co_buy_where['titlemenu' . $hg] ?></a></li>
        <li class="line"></li>
        <li class="<?= $recruitmentClass ?>"><a href="<?= APPLICATION_URL ?>recruitment.html"><?= $co_recruitment['titlemenu' . $hg] ?></a></li>
        <li class="line"></li>
        <li class="<?= $supportClass ?>"><a href="<?= APPLICATION_URL ?>support.html"><?= $co_support['titlemenu' . $hg] ?></a></li>
        <li class="line"></li>
        <li class="<?= $contactClass ?>"><a href="<?= APPLICATION_URL ?>contact.html"><?= $co_contact['titlemenu' . $hg] ?></a></li>
        
    </ul>
</div>
<?php
if ($act != 'product' && $act != 'product-detail' && $act !='search-result' )
    require_once 'slider.php';
?>

<?php if ($act != 'home'): ?>
    <div class="dark-line"></div>
<?php endif; ?>
